<!--
<pre>
<?
//print_r($mod_menu);

$word_array=array('a','b','c','d','e','f','g','h','i','g','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
$cifra_array=array('I','II','III','IV','V','VI','VII','VII','IX','X');
?>
</pre>
-->
	<div style="padding:15px 0px 0px 15px;">
	<table style="width:210px;" border="0">
	<tr>
		<td colspan="2" style="border-bottom:1px solid #c7c7c7; padding:0px 0px 10px 30px;"><h1><?=$tit?></h1></td>
	</tr>
	</table>
	<table style="width:210px;" border="0">
	<?
	$i=1;
	$num = count($mod_menu);
	foreach ($mod_menu as $menu) {?>
	<tr>
		<td valign="top" style="width:35px; <?if ($num!=$i) {?>border-bottom:1px solid #c7c7c7;<?}?> padding:15px 0px 15px 5px;"><table border="0" style="width:14px; height:13px;">
		<tr>
			<td style="padding:0px 0px 0px 5px; width:14px; height:13px; background-image: url('<?=$design_path?>images/round.gif'); background-position: center middle; background-repeat: no-repeat;"><?=$i?></td>
		</tr>
		</table></td>
		<td align="left" style="padding:15px 0px 15px 5px; <?if ($num!=$i) {?>border-bottom:1px solid #c7c7c7;<?}?>">
	
		<?
		if (!empty($url[1]) and strstr($menu['url'], $url[1])) { 
		$thisrazdel=1;
		$position[1]['url']=$menu['url'];
		$position[1]['name']=$menu['name'];
		}
		else $thisrazdel=0;
		if (empty($url[1]) and $i==1) $thisrazdel=1;
		?>
		<a href="<?=$menu['url']?>" <?if (!empty($thisrazdel)) {?>style="font-weight: bold;"<?}?>><?=$menu['name']?></a>
		<?if ((!empty($menu['top']) and !empty($thisrazdel)) or (!empty($menu['isopen']) and $menu['isopen']==1)) {?>
		<div style="padding:5px 0px 5px 0px;">
		<table>
		<?
		$y=0;
		$num_t = count($menu['top']);
		foreach ($menu['top'] as $top_menu) {?>
		<?
		if (
			(($mainurl=="presscenter" or $mainurl=="servise") and !empty($url[2]) and strstr($top_menu['url'], $url[2]))
			or
			(($mainurl=="company" or $mainurl=="portfolio") and !empty($url[1]) and strstr($top_menu['url'], $url[1]))
		) { 
		$thisrazd=1; 
		$position[2]['url']=$top_menu['url'];
		$position[2]['name']=$top_menu['name'];
		}//if
		else $thisrazd=0;?>
		<tr>
			<td style="padding:0px 3px 3px 0px;"><?=$word_array[$y];?>.</td>
			<td style="padding:0px 0px 3px 0px;"><a href="<?=$top_menu['url']?>" <?if (!empty($thisrazd)) {?>style="font-weight: bold;"<?}?>><?=$top_menu['name']?></a></td>
		</tr>
		<?
		$y++;
		}//foreach?>
		</table>
		</div>
		<?}//if?>
		<?if (!empty($menu['bot']) and !empty($thisrazdel)) {?>
		<div style="padding:5px 0px 5px 0px;">
		<table>
		<?
		$y=0;
		$num_b = count($menu['bot']);
		foreach ($menu['bot'] as $top_menu) {?>
		<?
		if (
		(!empty($url[3]) and strstr($top_menu['url'], $url[3])) or 
		(!empty($url[2]) and strstr($top_menu['url'], $url[2]) and empty($url[3]))
		) { 
		$thisrazd=1; 
		$position[2]['url']=$top_menu['url'];
		$position[2]['name']=$top_menu['name'];
		}//if 
		else $thisrazd=0;?>
		<tr>
			<td style="padding:0px 3px 3px 0px;"><?=$cifra_array[$y];?>.</td>
			<td style="padding:0px 0px 3px 0px;"><a href="<?=$top_menu['url']?>"><?if (!empty($thisrazd)) {?><strong><?}?><?=$top_menu['name']?><?if (!empty($thisrazd)) {?></strong><?}?></a></td>
		</tr>
		<?
		$y++;
		}//foreach?>
		</table>
		</div>
		<?}//if?>
		</td>
	</tr>
	<?
	$i++;
	}//foreach?>
	</table>
	</div>
	<div style="padding:12px 4px 0px 5px;">
	<table width="100%">
	<tr>
		<td style="height:3px; width:243px; background-color:#000000;"><img src="<?=$design_path?>images/dot.gif" alt="" width="243" height="3"></td>
	</tr>
	<tr>
		<td style="height:1px; width:243px; background-color:#b0330c;"><img src="<?=$design_path?>images/dot.gif" alt="" width="243" height="1"></td>
	</tr>
	</table>
	</div>